<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <title>Document</title>
</head>
<style>
.box1{
    width: 75px;
    height: 160px;
    background-image: url('./img/sprite.png');
    margin: 0 auto;
    animation:test 2s steps(8) infinite;
}
@keyframes test {
    from{
        background-position: 0 0;
    }
    to{
        background-position: -600px 0;
    }
}
</style>
<body>
    <div class="box1"></div>
</body>
</html>